package com.pure.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.pure.db.Business;
import com.pure.db.Develop;
import com.pure.db.Jobbusinessinfo;
import com.pure.db.User;
import com.pure.db.Userinfo;
import com.pure.db.Userjob;

public interface UserService {

	User getUserByLoginName(String loginname, String passwd);

	Integer addUser(User user);

	Business getBusinessByLoginName(String loginname, String password);

	Integer updateUser(User user);

	Integer addBussiness(Business business);

	Integer updateBussiness(Business business);

	Jobbusinessinfo selectBussinessInfoById(Integer id);

	List<Jobbusinessinfo> selectBussinessInfo(Integer id);

	Integer updateBussinessInfo(Jobbusinessinfo jobbusinessinfo);

	Integer addBussinessInfo(Jobbusinessinfo jobbusinessinfo);

	Integer deleteBussinessInfo(Integer id);

	Integer addUserInfo(Userinfo userinfo);

	Integer updateUserInfo(Userinfo userinfo);

	List<Userinfo> selectUserinfo(Integer id);

	Userinfo selectUserinfoById(Integer id);

	List<Jobbusinessinfo> getAllBussinessInfo(String type);

	Develop getDevelopByLoginName(String loginname, String password);

	Integer applyBusiness(Userjob userjob);

	Integer applyStatusBusiness(Userjob userjob);

	Userjob getUserjobById(Integer id);

	User getUserById(Integer id);

	Business getBussinessById(Integer id);

	List<Map<String, Object>> getApplyUserinfo(Integer jobbusinessid, Integer status);

	List<Jobbusinessinfo> getAllBussinessInfo1();

	boolean checkUse(Integer id);

	Map<String, Object> selectUserinfoByIdAndStatus(Integer id);

	Integer deleteUserInfo(Integer id);

	Business getBussinessByjobid(Integer jobid);

	List<Jobbusinessinfo> getAllBussinessInfo1(Date starttime, Date endtime);




}
